package main

import "fmt"

func main() {
	var balance = [3]int {3, 4, 5}
	var area, bulk int

	area = Area(balance, 2)
	bulk = Bulk(balance, 3)

	fmt.Println(area, bulk)
}

func Area(arr [2]int, size int) int {
	var i, sum int

	for i = 0; i < size;i++ {
		sum *= arr[i]
	}
	return sum
}

func Bulk(arr [3]int, size int) int{
	var i, volumn int

	for i = 0;i < size;i ++ {
		volumn *= arr[i]
	}
	return volumn
}